#ifndef PARCELLE_H
#define PARCELLE_H
#include <iostream>
using namespace std;

class Parcelle
{
private :
    int hauteur;
    int numBassin;
    unsigned int abs,ord;

public:

    Parcelle()
    {
        this->hauteur = 0;
        this->numBassin = -1;
        this->abs = 0;
        this->ord = 0;

    }

    Parcelle(unsigned int h,unsigned int x, unsigned int y)
    {
        this->hauteur = h;
        this->numBassin = -1;
        this->abs = x;
        this->ord = y;

    }

    bool operator == (Parcelle const& b ){
        if(abs == b.abs && ord ==b.ord && hauteur == b.hauteur){
        return true;
        }
        else{
        return false;
        }
    }

    //getters
    int getHauteur()
    {
        return hauteur;
    }

     int getNumBassin()
    {
        return numBassin;
    }

    unsigned int getAbs()
    {
        return abs;
    }

    unsigned int getOrd()
    {
        return ord;
    }
    void setNumBassin( int i)
    {
        this->numBassin = i;
    }

    void affiche()
    {
        cout<<"parcelle : x:"<<this->abs<<" y:"<<this->ord<<" h:"<<this->hauteur<<" nb:"<<this->numBassin<<endl;
    }
};

#endif
